<?php include load_tpl('header');?>
<p id="breadcrumbs">
    <a href="/">首页</a> <b>»</b> 
    <span>相册列表管理</span>
</p>

<div class="box">
  <div class="left"></div>
  <div class="right"></div>
  <div class="heading">
    <h1 style="background-image: url('./images/shipping.png');">相册列表</h1>
  </div>
  <div class="content">
      <table class="list">
        <thead>
          <tr>
            <th width="1" style="text-align: center;"><input type="checkbox"/></th>
            <th class="left">相册名称</th>
			<th class="left">相册描述</th>
            <th class="right">操作</th>
          </tr>
        </thead>
        <tbody>
		<?php if($album_list){foreach($album_list as $album){?>
            <tr>
            <td style="text-align: center;"><input type="checkbox" name="bid" value="<?php if(isset($album['id']))echo $album['id'];?>" />
            </td>
            <td class="left"><?php if(isset($album['name']))echo $album['name'];?></td>
			<td class="left"><?php if(isset($album['description']))echo $album['description'];?></td>
            <td class="right">
			<a class="button" href="index.php?mod=album&act=upload&album_id=<?php if(isset($album['id']))echo $album['id'];?>"><span>编辑本相册图片</span></a>
			<a class="button" href="index.php?mod=album&act=edit&album_id=<?php if(isset($album['id']))echo $album['id'];?>"><span>编辑</span></a>
			<a class="button"  href="index.php?mod=album&act=del&album_id=<?php if(isset($album['id']))echo $album['id'];?>"><span>删除</span></a>
            </td>
          </tr>
		  <?php } }else{?>
		  <tr>
		  <td colspan="3">无属性!</td>
		  </tr>
		  <?php }?>
        </tbody>
      </table>
</div>

<?php include load_tpl('footer');?>